import logging

from apps.cloudhospital.models import CloudHospital
from op_drf.dj_utils import create_by_serializer
from op_drf.serializers import CustomModelSerializer, BaseSerializer
from rest_framework import serializers

class ReadCloudHospitalSerializer(BaseSerializer):

    class Meta:
        model = CloudHospital
        # fields = "__all__"
        fields = ["id","name","is_active"]


class WriteCloudHospitalSerializer(BaseSerializer):

    class Meta:
        model = CloudHospital
        # fields = "__all__"
        fields = ["id","name","is_active"]